﻿<%@ Page Language="C#" MasterPageFile="~/Admin/PH_Admin.master" AutoEventWireup="true"
    CodeFile="nhanvienlist.aspx.cs" Inherits="Admin_nhanvienlist" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <h2>
        Danh sách nhân viên</h2>
    Tên nhân viên:
    <asp:TextBox ID="txt_tennv" runat="server"></asp:TextBox>
    <asp:Button ID="btn_Timkiem" runat="server" Text="Tìm kiếm" OnClick="btn_Timkiem_Click" />
    <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound">
        <HeaderTemplate>
            <table cellspacing="1" width="100%" border="1">
                <tr class="listtableheader">
                    <th>
                        Mã nhân viên</th>
                    <th>
                        Tên nhân viên</th>
                    <th>
                        Ngày sinh</th>
                    <th>
                        Giới tính</th>
                    <th>
                        Tài khoản</th>
                    <th>
                        Mật khẩu</th>
                    <th>
                        Chức vụ</th>
                    <th>
                        Sửa</th>
                    <th align="left">
                        <input id="cb_All" type="checkbox" onclick="CheckAll(1);" />
                        <a href="javascript:CheckAll(2)">Chọn hết</a>
                    </th>
                </tr>
                </thead>
                <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td>
                    <asp:Literal ID="lit_Ma" runat="server" />
                </td>
                <td>
                    <asp:HyperLink ID="hyp_ten" runat="server"></asp:HyperLink></td>
                <td>
                    <%#Eval("ngaysinh") %>
                </td>
                <td>
                    <%#Eval("gioitinh") %>
                </td>
                <td>
                    <%#Eval("taikhoan") %>
                    <td>
                        <%#Eval("matkhau") %>
                    </td>
                    <td>
                        <asp:Label ID="lb_cv" runat="server" Text="Label"></asp:Label></td>
                    <td>
                        <asp:HyperLink ID="hpl_Edit" runat="server">Edit</asp:HyperLink></td>
                    <td>
                        <asp:CheckBox ID="cb_Xoa" runat="server" />
                        <asp:HiddenField ID="hf_id" runat="server" />
                    </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            <tr>
                <td colspan="7" align="right">
                    <asp:Button ID="btn_xoa" runat="server" Text="Xóa" OnClick="btn_xoa_Click" />
                </td>
                <td colspan="2" align="right">
                    <asp:Button ID="btn_them" runat="server" Text="Thêm Nhân Viên" OnClick="btn_them_Click" />
                </td>
            </tr>
            </table>
        </FooterTemplate>
    </asp:Repeater>
</asp:Content>
